/*!
 * \file GapEventConnectCfm.h
 * \brief Event carrying message GapConnectCfm
 */

#ifndef MGW_GAP_EVENT_CONNECT_CFM_H
#define MGW_GAP_EVENT_CONNECT_CFM_H

#include "EventData.h"
#include "GapGlobals.h"
#include "GAP.pb.h"

namespace tsc
{
namespace mgw
{

using GatewayApplicationPart::GapConnectCfm;
//using ProtocolsCommon::IpAddress;

/**
 * Serving Gateway accepted connection with this MGW.
 * Received GapConnectCfm message holds ID of this MGW
 * assigned by SGW
 */
class GapEventConnectCfm : public common::EventData
{
public:

    GapEventConnectCfm(GapConnectCfm& connCfm) :
		EventData(GAP_CONNECT_CFM),
		mMgwId(connCfm.mgwid())
	{
        // nothing
	}

	virtual ~GapEventConnectCfm()
	{

	}

	uint32_t getMgwId() const
	{
		return mMgwId;
	}

private:
	uint32_t mMgwId;
};

} // namespace mgw
} // namespace tsc

#endif // MGW_GAP_EVENT_CONNECT_CFM_H
